package com.deepseek.project.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * author：胡磊
 * 对话历史消息实体类
 */
@Data
@TableName("talk_info_messages")
public class TalkInfoMessage {

    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * user/bot
     */
    private String messageType;

    private Integer talkInfoId;

    private String message;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
